package com.xltt.vehicleControl.bean;

import com.google.gson.annotations.SerializedName;

public class PushConfig  {

    /**
     * code : success
     * data : {"aliasName":"ANDROID16024855099072120026","theme":"theme","appCode":{"tokenExpiration":7200,"appId":"protonlink_01"},"env":"TESTING"}
     * httpStatus : OK
     * success : true
     */

    //@SerializedName("code")
    private String code;
    //@SerializedName("data")
    private DataDTO data;
    //@SerializedName("httpStatus")
    private String httpStatus;
    //@SerializedName("success")
    private Boolean success;

    public String getCode() {
        return code;
    }

    public PushConfig setCode(String code) {
        this.code = code;
        return this;
    }

    public DataDTO getData() {
        return data;
    }

    public PushConfig setData(DataDTO data) {
        this.data = data;
        return this;
    }

    public String getHttpStatus() {
        return httpStatus;
    }

    public PushConfig setHttpStatus(String httpStatus) {
        this.httpStatus = httpStatus;
        return this;
    }

    public Boolean getSuccess() {
        return success;
    }

    public PushConfig setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public static class DataDTO {
        /**
         * aliasName : ANDROID16024855099072120026
         * theme : theme
         * appCode : {"tokenExpiration":7200,"appId":"protonlink_01"}
         * env : TESTING
         */

        //@SerializedName("aliasName")
        private String aliasName;
        //@SerializedName("theme")
        private String theme;
        //@SerializedName("appCode")
        private AppCodeDTO appCode;
        //@SerializedName("env")
        private String env;

        public String getAliasName() {
            return aliasName;
        }

        public DataDTO setAliasName(String aliasName) {
            this.aliasName = aliasName;
            return this;
        }

        public String getTheme() {
            return theme;
        }

        public DataDTO setTheme(String theme) {
            this.theme = theme;
            return this;
        }

        public AppCodeDTO getAppCode() {
            return appCode;
        }

        public DataDTO setAppCode(AppCodeDTO appCode) {
            this.appCode = appCode;
            return this;
        }

        public String getEnv() {
            return env;
        }

        public DataDTO setEnv(String env) {
            this.env = env;
            return this;
        }

        public static class AppCodeDTO {
            /**
             * tokenExpiration : 7200
             * appId : protonlink_01
             */

            @SerializedName("tokenExpiration")
            private Integer tokenExpiration;
            @SerializedName("appId")
            private String appId;
        }
    }
}
